mkdir ~/usr_func && mv ./template ~/usr_func/
# 部署k3s环境
curl -sfL https://rancher-mirror.rancher.cn/k3s/k3s-install.sh | INSTALL_K3S_MIRROR=cn sh -
# 部署openfaas环境
git clone https://gitee.com/xusun000/faas-netes.git
# 部署静态文件
cd faas-netes && kubectl apply -f namespaces.yml 
# 一行命令设置账户admin密码admin
kubectl -n openfaas create secret generic basic-auth --from-literal=basic-auth-user=admin --from-literal=basic-auth-password="admin"
# 部署所有openfaas服务
kubectl apply -f ./yaml
kubectl get pods -n openfaas
# faas-cli登录
faas-cli login -u admin -p admin
cd ..

# 部署后端
git clone https://gitee.com/xusun000/bi-sheh.git
cd bi-sheh
cnpm i


# 部署前端

